home *** CD-ROM | disk | FTP | other *** search
- Path: deadly.demon.co.uk!leo
- From: Leo Ponton <leo@deadly.demon.co.uk>
- Newsgroups: comp.lang.c++
- Subject: TApplication derivation - a C++ Windows newbie
- Date: Mon, 15 Apr 1996 19:28:52 +0100
- Organization: fingers
- Distribution: world
- Message-ID: <cjcQ5BAkVpcxEwto@deadly.demon.co.uk>
- NNTP-Posting-Host: deadly.demon.co.uk
- X-NNTP-Posting-Host: deadly.demon.co.uk
- MIME-Version: 1.0
- X-Newsreader: Turnpike Version 1.10 <GOXf3TlnKLZOTVuFjLKX0tojaU>
-
- I've read the book: From C to C++ in 2 Weeks (N & O Gurewich; Sybex
- 1994), I've dusted off BC++ 3.1 (Installed in Win95) and I've cut my
- first C++ code (also my first Windows code.).
-
- Problem:- When BC++ comes to do the linking, I get the following
- warning and errors:
-
- Linker Warning:Possible reference to undefined extern object::zero in
- module FIRST.CPP
- Linker Error:Undefined symbol tapplication::~tapplication() in module
- FIRST.CPP
- Linker Error:Undefined symbol twindowsobject::closewindow() in module
- FIRST.CPP
-
- ...and so on.
-
- The code for the class derived from the TApplication class is as
- follows:
-
- class TMyApp : public TApplication
- {
- public:
- TMyApp( LPSTR AName,
- HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- :
- TApplication( AName,
- hInstance,
- hPrevInstance,
- lpCmdLine,
- nCmdShow) {};
-
- virtual void InitMainWindow();
-
- };
-
- This code is copied from the book, and is the same as the disk version
- supplied therein.
-
- Is my problem one of configuration? All of the directories seem to be
- okay.
-
- Help would be much appreciated.
- Leo Ponton
-
- Nottingham, UK
- leo@deadly.demon.co.uk
-